package com.huawei.app.demo.video;

/**
 * 图像数据
 *
 * @since 2020-08-15
 */
public class ImgBuffer implements java.io.Serializable {

    private long sno;

    private int width;

    private int height;

    private long snoIndex;

    private byte[] data;

    public ImgBuffer() {
    }

    public ImgBuffer(long sno, int width, int height, long snoIndex, byte[] data) {
        this.sno = sno;
        this.width = width;
        this.height = height;
        this.snoIndex = snoIndex;
        this.data = data;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        sb.append("sno: ").append(sno).append(", ");
        sb.append("width: ").append(width).append(", ");
        sb.append("height: ").append(height).append(", ");
        sb.append("snoIndex: ").append(snoIndex).append(", ");
        sb.append("data.length: ").append(data.length);
        sb.append("}");
        return sb.toString();
    }

    public long getSno() {
        return sno;
    }

    public void setSno(long sno) {
        this.sno = sno;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public long getSnoIndex() {
        return snoIndex;
    }

    public void setSnoIndex(long snoIndex) {
        this.snoIndex = snoIndex;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }
}